package com.chixing.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author smith
 * @since 2025-09-30
 */
@TableName("order_change")
public class OrderChange implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "change_id", type = IdType.AUTO)
    private Long changeId;

    private Long orderId;

    private Long oldRoomtypeId;

    private Long newRoomtypeId;

    private BigDecimal priceDiff;

    private String changeStatus;

    private LocalDateTime changeTime;

    /**
     * 用户补差价/商家退款
     */
    private String type;

    public Long getChangeId() {
        return changeId;
    }

    public void setChangeId(Long changeId) {
        this.changeId = changeId;
    }
    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }
    public Long getOldRoomtypeId() {
        return oldRoomtypeId;
    }

    public void setOldRoomtypeId(Long oldRoomtypeId) {
        this.oldRoomtypeId = oldRoomtypeId;
    }
    public Long getNewRoomtypeId() {
        return newRoomtypeId;
    }

    public void setNewRoomtypeId(Long newRoomtypeId) {
        this.newRoomtypeId = newRoomtypeId;
    }
    public BigDecimal getPriceDiff() {
        return priceDiff;
    }

    public void setPriceDiff(BigDecimal priceDiff) {
        this.priceDiff = priceDiff;
    }
    public String getChangeStatus() {
        return changeStatus;
    }

    public void setChangeStatus(String changeStatus) {
        this.changeStatus = changeStatus;
    }
    public LocalDateTime getChangeTime() {
        return changeTime;
    }

    public void setChangeTime(LocalDateTime changeTime) {
        this.changeTime = changeTime;
    }
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "OrderChange{" +
            "changeId=" + changeId +
            ", orderId=" + orderId +
            ", oldRoomtypeId=" + oldRoomtypeId +
            ", newRoomtypeId=" + newRoomtypeId +
            ", priceDiff=" + priceDiff +
            ", changeStatus=" + changeStatus +
            ", changeTime=" + changeTime +
            ", type=" + type +
        "}";
    }
}
